home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.02 Feb 91 / xserial source ƒ / HandletoNum.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-09  |  221 b   |  15 lines  |  [TEXT/KAHL]

  1. /* converts a string to a long */
  2. #include    "xcmd.h"
  3.  
  4. long    HandleToNum(block,h)
  5.     XCmdBlockPtr    block; 
  6.     Handle            h;
  7. {
  8.     char            s[128];
  9.     long            num;
  10.     
  11.     s_copy(s,*h);
  12.     num = StrToLong(block, (char *) ctop(s));
  13.     return(num);
  14. }
  15.